package com.start.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.start.admin.entity.StartSysRole;
import com.start.admin.entity.StartSysUserRole;
import com.start.admin.vo.StartUserRoleVo;

import java.util.List;

public interface StartSysUserRoleService extends IService<StartSysUserRole> {
    List<StartUserRoleVo> getRoleListByUserId(String userId);


    boolean userHasRoles(String userId, String[] roles);
    /**
     * 保存用户角色
     *
     * @param userId
     * @param roleIds
     */
    void saveUserRole(String userId, String[] roleIds);

    List<StartSysUserRole> listByUserId(String userId);

}
